<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="css/detailsPage.css">
</head>

<body>
    <div id="header">
        <h2>商品列表</h2>
        <button id="carsBtn">我的购物车</button>
    </div>
    <div id="main">

    </div>
    <script src="./js/jquery-3.6.0.js"></script>
    <script src="./js/template-web.js"></script>
    <!-- 商品详情模板 -->
    <script id="productDetails" type="text/html">
        <div class="left">
            <div class="pic">
                <img src="{{pic1}}" width="350px" height="350px">
                <div class="mask"></div>
            </div>
            <div class="picList">
                <div><img src="{{pic1}}" alt="" class="smallPic" width="50px" height="50px"></div>
                <div><img src="{{pic2}}" alt="" class="smallPic" width="50px" height="50px"></div>
                <div><img src="{{pic3}}" alt="" class="smallPic" width="50px" height="50px"></div>
                <div><img src="{{pic4}}" alt="" class="smallPic" width="50px" height="50px"></div>
            </div>
            <div class="bigGlass">
                <img src="{{pic1}}" alt="" class="bgPic">
            </div>
        </div>
        <div class="right">
            <div class="shopName">
                <h2>{{name}}</h2>
            </div>
            <div class="shopPrice">
                <strong><span>￥</span>{{unitPrice}}</strong>
            </div>
            <div class="shopNum">
                <input type="button" name="minus" value="-" disabled>
                <input type="text" name="amount" value="1">
                <input type="button" name="plus" value="+">
            </div>
            <div>
                <button id="addToShoppingCartBtn" data_index="{{id}}">加入购物车</button>
            </div>
        </div>
    </script>
    <script src="./js/detailsPage.js"></script>
</body>

</html>